{if $metadata.conditions }
 	<div style="padding-bottom:5px; padding-top:5px; display:block">
 	<form name="{$id}_query_form" id="{$id}_query_form">
    	{foreach from=$metadata.conditions item=field key=k}
        	{if $field.type eq "combobox"}
        	<div style="display:inline-block">
	        	<label style="font-size:11">{$field.title}：</label>
	            <input field="{$id}_query" id="{$field.name}" name="{$field.name}" style="cursor:hand" class="easyui-combobox" {if $field.required eq 'true'}required{/if}
			        data-options="   
				        valueField: '{$field.valueField}',   
				        textField: '{$field.textField}', 
				        value:'{$field.value | default:''}',
				        url: '{$field.url}',   
				        onSelect: function(rec){  
		                    this.value=rec.id;
				        }" />
        	</div>
			{elseif $field.type eq "combotree"}
        	<div style="display:inline-block">
	        	<label style="font-size:11">{$field.title}：</label>
	            <input field="{$id}_query" id="{$field.name}" name="{$field.name}" style="cursor:hand" class="easyui-combotree" {if $field.required eq 'true'}required{/if}
			        data-options="   
				        valueField: '{$field.valueField}',   
				        textField: '{$field.textField}', 
				        value:'{$field.value | default:''}',
				        url: '{$field.url}',   
				        onSelect: function(rec){  
		                    this.value=rec.id;
				        }" />
        	</div>
			{elseif $field.type eq "checkbox"}
        	<div style="display:inline-block">
	        	<label style="font-size:11">{$field.title}：</label>
	            {foreach from=$field.options item=option key=k}
	            <span style='display:inline-block'><input type="checkbox" value="{$option.valueField}" name="{$field.name}" style="width:10px">{$option.textField}</span> &nbsp;
	            {/foreach}
        	</div>
			{elseif $field.type neq "reference" and $field.type neq "hidden" and $field.type neq "password" and $field.isField neq "false"}
        	<div style="display:inline-block">
	        	<label style="font-size:11">{$field.title}：</label>
				<input field="{$id}_query" id="{$field.name}" name="{$field.name}"  class="easyui-textbox" style="width:{$field.width | default:'75%'}" >
        	</div>
			{/if}
        {/foreach}
        <input type="button" value="查找" onclick="search('{$id}')">
    </form>
    </div>
 {/if}
 